package top.yoahh.security;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/test1")
    public String test1(){
        return "hello world----->1";
    }

    @RequestMapping("/test2")
    public String test2(){
        return "hello world----->2";
    }

    @RequestMapping("/test3")
    public String test3(){
        return "hello world----->3";
    }

    @RequestMapping("/test4")
    public String test4(){
        return "hello world----->4";
    }

    @RequestMapping(value = "/login",method = RequestMethod.POST)
    public String login(String username,String password){
        return "登录成功";
    }
    @RequestMapping(value = "/logout",method = RequestMethod.POST)
    public String logout(String username,String password){
        return "注销成功";
    }
}
